from ronglian_sms_sdk import SmsSDK
import json
accId = '2c94811c946f6bfb0196ec4cc5d277ff'
accToken = 'a781c3527af741f98659c73ee3ee0b57'
appId = '2c94811c946f6bfb0196ec4cc7987806'
template_id = '1'
expire_minutes = 5
def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = template_id
    mobile = phone
    datas = (code, expire_minutes)
    response = sdk.sendMessage(tid, mobile, datas)
    return json.loads(response)